package cn.ll.service;

import java.util.List;

import cn.ll.po.Role;
import cn.ll.po.RoleDAO;

public class RoleService {
	RoleDAO	roleDAO = null;
	
	public List<Role> findAll(){
		List<Role> list = roleDAO.findAll();
		return list;
	}
	
	public void save(Role role){
		roleDAO.save(role);
	}
	
	public void update(Role role){
		roleDAO.update(role);
	}
	
	public Role findById(String id){
		Role role = roleDAO.findById(id);
		return role;
	}
	
	public RoleDAO getRoleDAO() {
		return roleDAO;
	}

	public void setRoleDAO(RoleDAO roleDAO) {
		this.roleDAO = roleDAO;
	}
}
